package com.atguigu.cloud.apis;

import com.atguigu.cloud.responce.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ Author：Aijinhui
 * @ Description：
 * @ Date：2024-06-03-10:17
 */
@FeignClient(value = "nacos-payment-provider", fallback = PayFeignSentinelApiFallBack.class)  // 微服务调用者异常情况同意调用PayFeignSentinelApiFallBack
public interface PayFeignSentinelApi {
    @GetMapping("/pay/nacos/get/{orderNo}")
    ResultData getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}
